home *** CD-ROM | disk | FTP | other *** search
- onClipEvent(load){
- function changeDir()
- {
- dir = random(2);
- if(dir == 0)
- {
- dir = "left";
- }
- if(dir == 1)
- {
- dir = "right";
- }
- }
- function bomb()
- {
- if(_root.paused)
- {
- return undefined;
- }
- if(health <= 0)
- {
- return undefined;
- }
- dir = "wait";
- type = "bomb3";
- c = random(3);
- if(c == 0)
- {
- i = 0;
- while(i < random(4) + 2)
- {
- var _loc2_ = type + i;
- _root.depthHolder = _root.depthHolder + 1;
- _root.attachMovie(type,_loc2_,random(100000));
- _root[_loc2_]._x = _X;
- _root[_loc2_]._y = _Y + 50;
- i++;
- }
- }
- if(c == 1 or c == 2)
- {
- timeB = true;
- }
- }
- if(_root.sound)
- {
- begin = new Sound(this);
- begin.attachSound("fboss1");
- begin.start();
- ufoS = new Sound(this);
- ufoS.attachSound("ufo");
- ufoS.start(0,9999);
- explode1 = new Sound(this);
- explode1.attachSound("explode2");
- explode = new Sound(this);
- explode.attachSound("explode1");
- }
- health = 100;
- damage = false;
- speed = 4;
- delay = 7500;
- resetTime = getTimer() + delay;
- time = 0;
- t = 0;
- changeDir();
- i = 1;
- _root.boss = this;
- timeB = false;
- bombs = 0;
- time = 0;
- }
-